Performance increases for recursive queries
- Fixed some issues regarding falsy values