Simplified logic to use isSolid() instead of individual checks.