better method for finding ProcessWire index.php
use isset() to avoid undefined index error