search arrays first commit. returns true or false