include guard check extracted in method