Check if logger isn't nil