Update logic for scopeExists, getDefaultScope for PDO, Redis