Check object exists before matching it