protected function matches($subject, array $arguments) { return null !== $subject && $subject instanceof $arguments[0]; }