Update base.py

Replace conditional "<...>.count() > 0" on "<...>.exists()" - it's more rightly