Shouldn't this check be case insensitive?