Check if array was allocated. #1518