Checking if set_time_limit is disabled or safe mode is on

We shouldn't try to run it if it ain't available to avoid nasty errors.

Sorry to be pushing against the use of @ here. I think this is a nicer way of doing it and should take care of everything. :)