is_composite() logic modification.