Fixed issue with detecting uninitialized array values