Override canExecute to include this check and use it.