newValue is always defined check for array length