Use isset() instead of !is_null().