Fixed issue with no arguments being passed to defined method

If no arguments were passed to a user defined form method then it would break, created a check for it