May want an `else` clause here to print something out to denote something of unknown type was found. Will stop someone using this in the future, hunting for an element and not finding it as it got silently ignored!