public function __invoke() { if ($this->auth->hasIdentity()) { return $this->auth->getIdentity(); } return false; }