Style nitpick... now that this is a function, I would rather this logic be inverted and `return nil` and then un-indent the block contained within, please.