Trouble with if statement
<p>I'm a noob so please be patient 
I have to test an array, so that I check if it exists and to see if the numbers in it are ok.
In every case a message must be put out...for example...if the array is full and the numbers are ok I should get a message like (Array is full, Num are ok). But I use If after If and I get into trouble because.....well..take a look for yourself.</p>

<pre><code>    public static function getTest($ids){       
        $input_result = array();
        foreach ($ids as $id) {
            $input_result['result']['Id '.$id] =  $id;
        }
        if((!empty($ids))){
            //echo "You have inputted some data in the Api_Books_Book::getTest&lt;br/&gt;";
            $input_success = "Successful!";
            $input_message = "Array OK";                                
        }
        else
        {
            //echo "There is no data&lt;br/&gt;";
            $input_success = "Not Successful";
            $input_message = "Have inputed anything in the array?";
        }              
        if(okNum($ids)) {
            //echo "You have inputted some data in the Api_Books_Book::getTest&lt;br/&gt;";
            $input_success = "Successful!";
            $input_message = "numbers OK";
        }
        else {
            //echo "There is no data&lt;br/&gt;";
            $input_success = "Not Successful";
            $input_message = "numbers not OK";
        }
        $result=array('status'=&gt;$input_success,'message'=&gt;$input_message,'result'=&gt; $input_result);

        rdie($result);
        return $result;
   }
</code></pre>
