Fix the logic of VIPInitCheck::check()

This includes adding an error and returning false if no main
functions.php is found. It should also improve overall legbility.