hasProperties added deep arg
isBoolean functionality and tests
hasKeypaths functionality and tests