check in model->value data is not empty

since if data=[] is empty when we check for match we got view empty