updated check to allow for use with only 1 item