Added check for record on searchresults