Removed unnecessary check in differentiate{:/}