Fixed check for array size before func_size: when func_size is 0 there's only 1 entry left and not 3.