Why `|bool`? I think it's better to stick with `|null` like `getSize()` and others. Returning `false` in case of an error is an heritage from the old days of PHP, and I can't see any reason to return a boolean in case of an error.