Should return 1 either way, you also forgot to put in the del(src) into the if loop.