Update base.py

Replace conditional "<...>.count() > 0" on "<...>.exists()" - it's more rightly
Merge pull request #680 from DrMartiner/patch-1

Update base.py