return error object if they exist otherwise return None