under such conditions as are determined to be for the best interests or the welfare of the child. Any child placed in an institution or in a family home by the department or its agency may be removed by the department or its agency, and such other disposition may be made as is for the best interest of the child, including transfer of the child to another institution, another home, or the home of the child. Expenditure of funds appropriated for out-of-home care can be used to meet the needs of a child in the child's own home or the home of a relative if the child can be safely served in the child's own home or that of a relative if placement can be avoided by the expenditure of such funds, and if the expenditure of such funds in this manner is equal to or less than the cost of out-of-home placement.
Fla. Stat. § 409.165