ActiveQuery code improvements

Removed else statements from __call() and all() functions.