What happens if you do !list(project.contains(link("MyProject")) ?
!list(project.contains(link("MyProject"))