(b) Before taking a minor into custody, a social worker shall consider whether the child can remain safely in his or her residence.
The consideration of whether the child can remain safely at home shall include, but not be limited to, the following factors:
(1) Whether there are any reasonable services available to the worker which, if provided to the minor's parent, guardian, caretaker, or to the minor, would eliminate the need to remove the minor from the custody of his or her parent, guardian, or caretaker.
(2) Whether a referral to public assistance pursuant to Chapter 2 (commencing with Section 11200) of Part 3, Chapter 7 (commencing with Section 14000) of Part 3, Chapter 1 (commencing with Section 17000) of Part 5, and Chapter 10 (commencing with Section 18900) of Part 6, of Division 9 would eliminate the need to take temporary custody of the minor. If those services are available they shall be utilized.
(3) Whether a nonoffending caretaker can provide for and protect the child from abuse and neglect and whether the alleged perpetrator voluntarily agrees to withdraw from the residence, withdraws from the residence, and is likely to remain withdrawn from the residence.