title: How to check if JSON object is empty in PHP?
body: <p>I'm reading JSON data with PHP and that data contains empty objects (like <code>{}</code>). So the problem is, I have to handle the case when object is empty in different manner but I can't find good enough way to do the check. <code>empty(get_object_vars(object))</code> looks too scary and very inefficient. Is there good way to do the check?</p>