Keep it simple, return quickly on success
Keep it simple, return quickly on success

Avoid cumbersome if/else logic. On success, bail out, else handle
the error without introducing an indent level.

aklomp/libsmbclient-php,aklomp/libsmbclient-php,aklomp/libsmbclient-php