check for empty param before matching with map