DRY: created isVowel function