added argsLen variable to avoid accessing length property multiple time in the return method.