Fixed PHP warning error in utility class