prependIf

Conditionally prepend the base path only if the passed in condition is true.