Less indentation and a decent optimization

The optimization is the "else if" instead of "if" for checking
array in _removeBlobs. No need to iterate over keys of a blob.

The style update is changing instances of 4 space indentation to two space indentation, and streamlining the names of recursive functions.