---
title: "Comment by Lars Moelleken on \"Doing stricter checks in PHP\" | Hashnode"
description: "count($a) === 0 is even more readable, or? 🤔"
url: "https://hashnode.com/posts/doing-stricter-checks-in-php/6431e0e593ca2d4575fcf3aa/comment/643303a394d1164842d9c6fe"
---

[Discussion](https://hashnode.com/posts/doing-stricter-checks-in-php/6431e0e593ca2d4575fcf3aa)

Comment [Doing stricter checks in PHP](https://hashnode.com/posts/doing-stricter-checks-in-php/6431e0e593ca2d4575fcf3aa)

[Lars Moelleken](https://hashnode.com/@voku)

[Apr 9, 2023](https://hashnode.com/posts/doing-stricter-checks-in-php/6431e0e593ca2d4575fcf3aa/comment/643303a394d1164842d9c6fe)

`count($a) === 0` is even more readable, or? 🤔

[Geni Jaho](https://hashnode.com/@genijaho)

[Apr 9, 2023](https://hashnode.com/posts/doing-stricter-checks-in-php/6431e0e593ca2d4575fcf3aa/comment/643303a394d1164842d9c6fe#reply-643309d794d1164842d9c7f3)

I think yes, it's at the same level as **empty($a)**, but the point is we're letting go of a tiny bit of readability in exchange for a more trusted/clear code. When we do **$a === \[\]** we know for sure that it's a plain array and not an Arrayable object or similar. It's down to personal preference anyway.
