change from empty() to is_array for project->tasks, more reliable and remove time limits
change from require to include key request