add checking for nil board json