add conditional for missing JSON