Added a condition to avoid issues if the searches file contains blank line(s).