Bug fixes

Instead of returning the value of lang array a bool was retuned.