Check if value exists before returning