removes requirement of the arguments in the constructor method
and validates the method toArray if one of them was set