It might seem trivial, but now  we can use callbacks we totally should. You can delete the $hashes = array() and use this instead:

	$hashes = array_map(function($keyword) {
	  return $keyword->hash;
	}, $keywords);