syntax correction - can't use isset with an expression, so use !in_null instead