<?php


function getLocaleByLang($lang) {
   if(!isset($lang)) return "false";
   //function's code is here...
   return "true";
}

echo getLocaleByLang(null);