Check for truthy/falsy values instead of checking for null