# Detecting if array slot is empty

**URL:** <https://forum.kirupa.com/t/detecting-if-array-slot-is-empty/166392>\
**Category:** Uncategorized\
**Created:** [October 19, 2005, 3:48pm UTC](https://forum.kirupa.com/t/detecting-if-array-slot-is-empty/166392 "2005-10-19T15:48:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SlowRoasted](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@SlowRoasted](https://forum.kirupa.com/u/SlowRoasted)\
**Post date:** [October 19, 2005, 3:48pm UTC](https://forum.kirupa.com/t/detecting-if-array-slot-is-empty/166392/1 "2005-10-19T15:48:43Z")

</div>

I have an array created from a query. There is an option note field that I want to check for. If it is empty, or has a length of 0 then I dont want to show this image. if it is not empty I want to show the image. I know the logic just not the php to accomplish it. Can someone help:)
