public static function isValid($email, $invitecode, $realname) { if (self::isGlobalInvitation($email, $invitecode)) { return true; } return Name::exist($realname) and self::existAvailable($email, $invitecode); }