search: Only read keywords.length if keywords is set