Suppress PHP warnings

Quick and dirty fix to suppress "empty object" warnings.