Implement findKey and findIndex helpers