remove empty blocks
reset property by assigning null
use logical OR instead of bitwise OR