Please use my util method, this way of checking is not sufficient