I think you can just check with this if. isset() supports multi level checking I think.