fixed typo, checks for more than 1 element