ENH: Added method _has_constant which can correctly detect an implicit constant