checking the type rather than the existence