public function isUser(UserInterface $user = null) { return null !== $user && $this->getId() === $user->getId(); }