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