if statement display content even though no data

Doesn’t look like the return value of `get_post_custom_values()’ is well defined in the codex. My guess is that as long as you have a costume field called ‘_url’ set in any of your posts the result will be an empty array, and only if you don’t have it in any post it will return null.

You probably better replace your check to

if (!empty($infos))