fixed null as array key issuse
some fixed