This logic could be simplified with `-objectForKeys:notFoundMarker:`.