Rename clearArray to clear