/**
  * If a user is logged, get the relative 'user_sex' and 'match_sex' for better and more intuitive search.
  *
  * @param object \PH7\UserCoreModel $oUserModel
  * @param object \PH7\Framework\Session\Session $oSession
  * @return array The 'user_sex' and 'match_sex'
  */
 protected static function getGenderVals(UserCoreModel $oUserModel, Session $oSession)
 {
     $sUserSex = 'male';
     $aMatchSex = ['male', 'female', 'couple'];
     if (UserCore::auth()) {
         $sUserSex = $oUserModel->getSex($oSession->get('member_id'));
         $aMatchSex = Form::getVal($oUserModel->getMatchSex($oSession->get('member_id')));
     }
     return ['user_sex' => $sUserSex, 'match_sex' => $aMatchSex];
 }