Only range over the channels if it is not nil