that an alien has a criminal charge pending against the alien may not be the sole factor to justify the continued detention of the alien. (4) Least restrictive conditions required If an immigration judge determines pursuant to a hearing under this section that the release of an alien will not reasonably assure the appearance of the alien as required or will endanger the safety of any other person or the community, the immigration judge shall order the least restrictive conditions, or combination of conditions, that the judge determines will reasonably assure the appearance of the alien as required and the safety of any other person and the community, which may include secured or unsecured release on bond, or participation in a program described in subsection (i). Any conditions assigned to an alien pursuant to this paragraph shall be reviewed by the immigration judge on a monthly basis. (5) Special rule for vulnerable persons and primary caregivers In the case that the alien who is the subject of a custody determination under this subsection is a vulnerable person or a primary caregiver, the alien may not be detained unless the Government shows, in addition to the requirements under paragraph (2), that it is unreasonable or not practicable to place the individual in a community-based supervision program. (6) Definition In this subsection, the term vulnerable person means an individual who— (A) is under 21 years of age or over 60 years of age