Almost guessed it. :) There is native is_page_template() function.
is_page_template()
Read Article https://develop.horje.com/learn/1434/reference