Optimizing 'instanceof' when comparing to extension interfaces
Better handling of parentheses in unset, fixing PSR2 error