Add hasParam method