Normally I'd agree with this, but php will through a Notice about $data being undefined before use depending on the notice level.