checking parameter passed

Check if the parameters passed by is type of Array and Function