should check value try not only undefined