That’s not the way to use var_dump. You don’t echo it, you just call it see the manual and was suggesting dumping the entire $_GET array - we already know $_GET['kw'] doesn’t exist.
In any event, you need to look at where you think you set $_GET['kw'] as it is not getting set.
[off-topic]
You know you don’t need an opening <?php and closing ?> tag on every line, don’t you? One opening tag at the beginning and a closing one at the end will be enough.