changed if() in isLocInitted() to ternary operator, fixed grammar of return print for uniformity