Adding a check function

Because it makes sense. The non-vulnerable versions doesn't have
/libs/pdf.php.

So pretty simple.