I'm sending a parameter with post. This parameter holds a ZERO value.
When i'm trying to use the empty method it should return 1 if the parameter is not empty and 0 if the parameter is zero.
If i'm using this code:
var_dump(empty($_REQUEST['gender_preferences']) );
i'm getting the result: 1.
If i'm using this code:
var_dump(!empty($_REQUEST['gender_preferences']) );
i'm not getting the 0 value;
Why does this happen and how can i fix it?

