check for nil user