any now takes a function as argument to check the elements