Won't this give warnings/errors if $ca is false since they're not defined in that case?