More flexible get_project output (retro compatibility with PHP7.4)