wrapped null value check in coalesce