Replace ternary with !
Add docblock to filterByGeometryType