introduce diraction-check function and add it as safeguard to related functions
introduce diraction-check function and add it as safeguard to related functions

AdrieanKhisbe/diractions,AdrieanKhisbe/diractions