I know this may be a silly question, but I come across a snippet of php code that check if the $_POST is_array() before execute other functions.
$_POST
is_array()
PHP makes sure that $_POST is always an array, you don't need to do that check unless somewhere in your code you either unset or overwrite $_POST somehow.