test if variables/objects are initialized