Removed isPhotonAbsorbed() function in favor of an instance variable.