Fix object checking (it was totally broken).

Now it works and we've added the without_properties parameter as well.