Check for null and only return 'otherwise' on undefined