Fixed NULL array element check, by initializing {0} array