fixes #1, return false right away on empty input