Prevent accessing eventually unexisting array