prevents "Undefined property" NOTICE