updated find function to use $parse and added a find all function to return an array of all criteria that match the value of the key