Add check for 'RFlag *f' is not NULL