Ya... What are you referring to when you say expansions???? Just a tip for the future when you want to check if something is True you dont need to put ==TRUE. So for example:
If ($var == TRUE){
}
Is the same exact thing as:
If($var){
{
To check False:
If ($var ==FALSE){
}
Is the same thing as:
If(!$var){
}
This will save you a bit of typing.