Use === instead of == . What if ss_var.crop_area.x is null?