Hi,
There are two options to handle it:
Create a ref to task custom field at the project level which will be accommodated the first time you create such a task and then the condition should be whether this field is null
The name of the task(or any other string field on the task) would aggregate the name of the parent project too and then you can use indeed the FindObject() function.
Regards
Rachel