Tidied up ugly elsif associated with has_many searching using try