public static function validate($data) { if (empty($data['user'])) { throw new Exception('oSRS Error - User required'); } return true; }