Make observablecollection requirement conditional