mixed comparison for optional refs