Added check for empty arguments array.