added functionality to check if keys exist in values of another array for accepted model property usage with tests