Added check if the data is empty
- added unit testing to cover this check
Used testData as requested in comment
Merge pull request #6 from rickdgraaff/master

Added check if the data is empty