DRY'd the 'found' function, which codeclimate was whinging about