removed usage of Nette\Callback
add PHP version check