Initialize variable
Proper array check