Trying to fix "instance of" for php 5.3.3