Modify syntax of function definition
An object to indicate that an 'empty' project was removed
Add conditional to not run statement upon empty project removal