Created `firstExisting` function.
Merge pull request #52 from joshuacc/firstexisting

firstExisting