This statement is working only for PHP 5.5+, you have to assign the property to a variable and check the variable