Added basic implementation of if_arrfunc