Added check of have elem in json