check if a tree exists
Merge pull request #24 from VividCortex/23-no-routes-panic

Fix panic when no routes are defined