Here extra parentheses are excessive - if (!$entity instanceof ContactEmail) will work the same (see http://www.php.net/manual/en/language.operators.precedence.php).