SQL SSMS stored proc syntax validation

We have a server with full text searching enabled and another where it is not.

We have a stored proc that checks if full text indexing is enabled and runs a search query as appropriate but the issue is that we can't compile the proc on the one box without full text indexing because syntax checking throws errors, presumably because it knows the function are not supported.

Any obvious workarounds?
 
Thanks. Tried similar but the issue is that the proc can't be edited/compiled on the one server, it throws syntax errors, because FTI is not installed - even though it won't be run because of the check.

The only solution so far seems to be to use a dynamic proc but that is not ideal because it's a compromise in itself. Almost want to be able to just turn off or tell it to ignore the compilation checks. Yes, we know this sproc is technically invalid on this server because FTI is not enabled but it's never going to be run because we will check that fact first.