Add searchOne() method as requested in #2. Rewrite get() logic to have less duplicate code