fixed comparison error
added comparison braces
changed array_push() call to []