"which su" will return the path of the su binary, or it will return nothing. The python boolean of a string with something in it (such as the path of the su binary), will be True. An empty string (where there is no su binary) will be False.
Some system APKs are stored in directories that require root privileges, such as /system/product.