Fix hasType when empty data - #757