It seems like you are loosely comparing $rpath of type string to the boolean false. If you are specifically checking for a non-empty string, consider using the more explicit !== '' instead.
It seems like you are loosely comparing $rsubpath of type string to the boolean false. If you are specifically checking for a non-empty string, consider using the more explicit !== '' instead.