is_folder should be depreciated... / #3336

We should completely remove task.is_folder from the code. But this will take some time...