should verify that task is a Task object, this only checks if is an empty string