I was having this condition to check if file exist because other conditions were giving me values not good to try, so this was working for me till today,
$file_exists = (file_exists($page->contentFile($language->code())))
Today I updated to kirby 4 and it is not working anymore. Any ideas how to fix it ?