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