I would rather pass the array to the method instead of checking for the methods, the whole construct is kinda hard to read then.