more getActivity() checks