Fix nil == []T and function compares