Multilingual pages

Hi guys, I have a question about multilingual pages.

I have some pages that are not available in all languages or only in the “default language”.
In some blocks I use redirects like this:

\Redirect::to(\URL::to(\Page::getByID($this->LINK[‘PageRegister’])).“?Para”.$this->getMSGs())

Now my question:
Is there a function that will return a localized PageID in the active language based on a PageID if available?
Since I always try to use C5 board resources when possible, but haven’t found anything suitable, I thought I’d ask the experts. I am surely not the first one who has such a case.

Check controller code of switch_language block
concrete/blocks/switch_language/controller.php:45
resolve_language_url() method has code for getting translated page. Copy some code from there.

Thank you that is a good tip