How to hide empty fields on responses received?