Remove `is_array` function.
Create a class constructor function.