Cal. Welf. & Inst. Code § 306
(a) Any social worker in a county welfare department, or in an Indian tribe that has entered into an agreement pursuant to Section 10553.1 while acting within the scope of their regular duties under the direction of the juvenile court and pursuant to subdivision (b) of Section 272, may do all of the following:
(f) Before taking a child into custody, a social worker shall consider whether the child may remain safely in their residence. The consideration of whether the child may remain safely at home shall include, but not be limited to, the following factors: