We could refactor this error into it's own method just to gain a liiiitle bit of DRYness.

Also, do you think is a good idea to just return a default taxonomy in case none is passed or if it's invalid ?