check the type of a field only it is not blank