small typo in exists

was checking for typeof path, but the value is never initialized.
Instead, check for arguments[0]