Added arguments length verification

With this modification It throws invalid arguments exception when arguments length is smaller than two.