Added simple check to example.php. Its far from ideal but will work for now.