[fix] only create error if value defined