`if not src or not dest:` is more Pythonic.