Added array_clear function