why would $entry be null?