Na, rewrite it to use Symfony\Component\HttpFoundation\Session\Session. That's the class you checked it existed or not.