gaurd against treating None like an iterable