This is way too verbose. `return $result->fetchOne() === $table`. (5 lines less).