is there a simple way of doing this witouthout having to loop through the whole array, if not, how would i go about creating a loop in order to check?

thanks