addressing a few PHP notices concerning constructors and inexistant StdClass instances