public function is_searchable() { // A bool value that indicates whether the name is a valid name to // search by. $first = PiplApi_Utils::piplapi_alpha_chars(!empty($this->first) ? $this->first : ''); $last = PiplApi_Utils::piplapi_alpha_chars(!empty($this->last) ? $this->last : ''); $raw = PiplApi_Utils::piplapi_alpha_chars(!empty($this->raw) ? $this->raw : ''); return strlen($first) >= 2 && strlen($last) >= 2 || strlen($raw) >= 4; }