Raised error with empty array initialization