Prefer string comparison and avoid magic constant
Define `cssCase` utility method
Return `readData` result directly
Add additional test case
Create a flag for the "read all" condition