Updated scope checking to allow undefined values