Preventing notice on uninitialized array