Checking if task is not empty (issue #13)

Solved issue #13