Check if in leaves project before running project commands.