private bool removeItem(List<Task> tasks, Task task) { string taskId = task==null?null:task.getId(); return removeItem(tasks, taskId); }