check if value is null and make the helper null safe