Changed to make the $is_home determination on URI instead of the whole URL