add check for nil searched results