prismicio/php-kit — pull request #16 by adamgoose (2013-11-15 15:38:58+00:00)
Title: Provide has() method to Document

This will provide a way to test for the presence of a fragment, and prevent the "Undefined variable $single" error that's thrown by the get() method when the fragment doesn't exist.