<?php
// a class without anything
class Foo {}
$anyObject = new Foo();
// Foo has no property funProp
dump(property_exists($anyObject, 'funProp'));
$anyObject->funProp = 'you don\'t have properties, Foo? ' .
'Are you sure?';
// suddenly it has a property funProp
dump(property_exists($anyObject, 'funProp'));
// Open the door to bad code with this behaviour
echo $anyObject->funProp;
^ false
^ true