call to undefined method stdclass::isempty()