check that project is not nil