public function isValid($element) { if (parent::isValid($element) && $element instanceof ComparableInterface) { return true; } return false; }