Check if key is longer than 'postcode' to avoid PHP Warning. Also hardcode strlen('postcode') for efficiency.