[743] Prevent isEmpty method leaking into the JSON for Paths.
Merge pull request #744 from adrianbk/bug-743

[#743] Prevent isEmpty method leaking into the JSON for Paths.