Set $remote_revision to null, so it can safely be checked for a "falsy" value and remove the need of using empty().