add a condition for checking empty json