fix #4 - check if json call is not empty