Added check line for empty array
Merge branch 'master' of github.com:SpongeSoft/DietApp