<?php

$s = new SplFileObject(__FILE__);
$s->hasChildren('string');
<?php

$s = new SplFileObject(__FILE__);
var_dump($s->hasChildren());