Made check_arguments() a little safer