check for nil explicitly