Added if_null_then helper method