A sufficient condition for the Bisognano-Wichmann property