added check for if the value is truthy