Check if theres input before throwing error
Merge pull request #27 from firstandthird/val-length-check

Check if theres input before throwing error