Allow to check if a vector or map is empty
Test Plan:
Unit tests provided.
Needed by a Zed site health check:
if ($nonWritableDirs->isEmpty()) { // We can write everywhere. return true; }
Reviewers: dereckson
Reviewed By: dereckson
Differential Revision: https://devcentral.nasqueron.org/D2508