check for array in constructor