use hasKeys check. This allows functions too
2.0.6