The code makes no distinction between present or nil - the later find_template calls simply don't check the value of one or the other.