In Python, all empty collections return false, so we can simply check `%if sorts` here.