Function canAssign