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