protect agains undefined