The search must be conducted by an officer of the same sex as the arrested person, or in the presence of a reliable witness if no such officer is available.