Catch if modifier surely modifies object when scalar expected